@charset "utf-8";

@mixin reset(){
  html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,
  legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,
  figcaption,figure,footer,header,menu,nav,section{
    margin:0;
    padding:0;
    box-sizing: border-box;
  }
  article,aside,details,figcaption,figure,footer,header,menu,nav,section {
    display:block;
  }
  ol,ul,li{
    list-style:none;
  }
  input,label,textarea,select{
    box-sizing: border-box;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    -webkit-appearance: none; // 禁用表单样式
    font-size: 100%;
  }
  table{
    border-spacing: 0;
    border-collapse: collapse;
  }
  a{
    box-sizing: border-box;
    text-decoration: none;
  }
  [hidden]{
    display: none;
  }
}

/* 一些手机样式 */
body{
  font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  user-select: none
}
img {
  vertical-align: top
}
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none
}
a {
  text-decoration: none;
  -webkit-touch-callout: none // 禁用系统菜单
}
input,
textarea {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text
}
input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
  -webkit-appearance: none;
  border: 1px solid;
  border-radius: 0
}




// 自定义样式~
%text-truncate{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@mixin tools(){
  .text-center{
    text-align: center;
  }
  .text-left{
    text-align: left;
  }
  .pull-left{
    float: left;
  }
  .pull-right{
    float: right;
  }
  .clearfix:after{
    content: "";
    display: table;
    clear: both;
  }
  .text-truncate{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@mixin size($w: 100%,$h: 100%){
  width: $w;
  height: $h;
}
@mixin post($t: 0,$l: 0,$pos:absolute){
  position: $pos;
  top: $t;
  left: $l;
}
@mixin bg($pos:center cneter,$rep:no-repeat,$size:auto){
  background-position: $pos;
  background-repeat: $rep;
  background-size: $size;
}

// 手机截断
.ui-nowrap-multi{
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


// 自定义的一个开头
body{
  margin: 0;
  padding: 0;
  font:14px/1.5 "PingFang SC", Helvetica, "Helvetica Neue", "微软雅黑", Tahoma, Arial, sans-serif;
  color: #14191e;

  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}

// 禁止用户更改页面字体大小
body { -webkit-text-size-adjust:100%!important; }
// 消除transition闪屏
.css {
  -webkit-transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000px;
}
//目前，像Chrome/Filefox/Safari/IE9+以及最新版本Opera都支持硬件加速，当检测到某个DOM元素应用了某些CSS规则时就会自动开启，从而解决页面闪白，保证动画流畅。
.css {
  -webkit-transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  -ms-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}


// 一些小技巧 https://github.com/AllThingsSmitty/css-protips/tree/master/translations/zh-CN